﻿@{
    ViewBag.Title = "操作日志信息列表";
    Layout = "~/Views/Shared/_ListLayout.cshtml";
    ViewBag.ToolbarItem = "delete";

    ViewBag.GridId = "operate-logs";
    ViewBag.GridDataUrl = Url.Action("OperateLogGridData");
    ViewBag.SubGridDataUrl = Url.Action("DataLogGridData");
    ViewBag.DeleteUrl = Url.Action("DeleteOperateLogs");
}
@section toolbar
{
    <label>关键词: </label>
    <input name="Name" data-options='{op:"contains",field:"Name"}' class="mini-textbox" />
    <a class="mini-button" iconCls="icon-search" plain="true" onclick="search()">查询</a>
}
@section script
{
    <script type="text/javascript">
        function docReady() {
            var opts = {
                id: "data-list",
                dataUrl: "@Url.Action("OperateLogGridData")"
            };
            mg = $.mini.grid();
            grid = mg.init(opts);
            mg.load();
        };
    </script>
}

<div id="data-list" class="mini-datagrid" style="width:100%;height:100%;" idField="Id" showColumnsMenu="true" allowCellValid="true" allowAlternating="true" allowResize="true">
    <div property="columns">
        <div type="indexcolumn" width="20px"></div>
        <div field="FunctionName" width="80px" headerAlign="center" allowSort="true">功能名称</div>
        <div field="NickName" width="80px" headerAlign="center" allowSort="true">操作人</div>
        <div field="Ip" width="80px" headerAlign="center" allowSort="true">IP地址</div>
        <div field="CreatedTime" width="80px" headerAlign="center" dateFormat="yyyy-MM-dd" allowSort="true">创建时间</div>
        <div name="action" width="80px" headerAlign="center" align="center" renderer="onActionRenderer" cellStyle="padding:0;">操作</div>
    </div>
</div>